<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{layout :: css(~{::title},~{::link})}">
    <title>用户登录</title>
    <link rel="stylesheet" th:href="@{/css/pink.css}"/>
</head>
<body>
<div class="container">
    <div class="login-wrapper">
        <div class="header">登录</div>
        <div><p th:text="${errormsg}"></p></div>
        <form action="/login" method="get">
        <div class="form-wrapper">
            <input type="text" name="username" placeholder="用户名" class="input-item">
            <input type="password" name="password" placeholder="密码" class="input-item">
            <form action="layout.html" method="post"></form>
            <input class="btn"type="submit" value="登录"></input>
        </div>
        </form>
        <div class="msg">
            还没有账户？
            <a href="/registerForm" >注册</a>
        </div>
    </div>
</div>
</body>
</html>
